package com._520it._04_many2many.domian;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.util.ArrayList;
import java.util.List;


@Getter
@Setter
@ToString(exclude = "stulist")

//单向的many2many teacher来查询学生
public class Teacher {

    private Long id;
    private String name;
    private List<Student> stulist = new ArrayList<>();


}
